package com.erick.shop.api.bootstrap;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import com.erick.shop.api.repository.SecondLeavelRepository;

/**
 * 
 * @author 12057
 *
 */
//@EnableAutoConfiguration
@EnableWebMvc
@ComponentScan("com.erick.shop.api.repository")
public class RepositoryBootstrap {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = new SpringApplicationBuilder(RepositoryBootstrap.class)
				.web(WebApplicationType.NONE)
				.run(args);
		/*FirstLeavelRepository firstLeavelRepository = (FirstLeavelRepository)context.getBean("firstLeavelRepository");
		System.out.println(firstLeavelRepository.getStr());*/
/*		SecondLeavelRepository second = (SecondLeavelRepository)context.getBean("secondLeavelRepository");
		System.out.println(second.getStr());*/
		

		
		
		context.close();
	}

}
